package com.xdap.water.pojo;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Table("gt_project_jb")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GtProjectInformationPojo extends SystemCommonPojo {
    @Style(displayName = "项目名称")
    @Column("pro_name")
    private String projectName;

    @Style(displayName = "项目编码")
    @Column("pro_code")
    private String projectCode;

    @Style(displayName = "责任单位")
    @Column("pro_zrdw")
    private String unit;

    @Style(displayName = "批复总投资（万元）")
    @Column("pro_ztzpf")
    private Double replyAmount;

    @Style(displayName = "合同额（万元）")
    @Column("pro_htje")
    private Double contractTotalAmount;

    public String generateSpecialIdStr() {
        return String.format("'[\"%s\"]'", this.getId());
    }
}
